/**
 * Created by zd.
 */
import * as types from '../actions/ActionTypes'

const app = (state = {}, action) => {
  switch (action.type) {
    case types.FETCH_MALL_THEM_HOS:
    return $.extend({},state,{mall_them_hos:action.getData})
    case types.FETCH_MALL_THEM_DOC:
    return $.extend({},state,{mall_them_doc:action.getData})
    case types.FETCH_MALL_THEM_HOS_DET:
    return $.extend({},state,{mall_them_hos_det:action.getData})
    case types.FETCH_MALL_THEM_DOC_DET:
    return $.extend({},state,{mall_them_doc_det:action.getData})
    case types.FETCH_MALL_THEM_DOC_SHOW:
    return $.extend({},state,{mall_them_doc_show:action.getData})
    case types.FETCH_MALL_THEM_HOS_SERVITEM:
    return $.extend({},state,{mall_them_hos_servItem:action.getData})
    case types.FETCH_MALL_THEM_ANLI:
    return $.extend({},state,{mall_them_doc_anli:action.getData})
    case types.ITEMCLASS_SHOW:
    return $.extend({},state,{itemClass_show:action.getData})
    case types.ITEM_PRO:
    return $.extend({},state,{itemPro:action.getData})
    default:
      return state
  }
}
export default app
